public class two {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5};

        try {
            for (int i = 0; i <= 5; i++) {
                System.out.println(arr[i]);
            }
//            float t = 10 / 0;
//            int[] a = null;
//            System.out.println(a[0]);

        } catch (ArrayIndexOutOfBoundsException e){
            System.out.println(e.getStackTrace());

        } catch (Exception e) {
            e.getStackTrace();

        } finally {

        }
    }
}
